package com.cskaoyan.bean.footprint;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 姚旭佳
 */
@NoArgsConstructor
@Data
public class FootprintVo {

    /**
     * brief : ddds
     * picUrl : http://182.92.235.201:8083/wx/storage/fetch/tkwecm9f2eqep6mf61o9.jpeg
     * addTime : 2021-10-21 12:58:22
     * goodsId : 1181025
     * name : ddd
     * id : 105
     * retailPrice : 0.0
     */

    @JsonProperty("brief")
    private String brief;
    @JsonProperty("picUrl")
    private String picUrl;
    @JsonProperty("addTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date addTime;
    @JsonProperty("goodsId")
    private Integer goodsId;
    @JsonProperty("name")
    private String name;
    @JsonProperty("id")
    private Integer id;
    @JsonProperty("retailPrice")
    private BigDecimal retailPrice;
}
